public class Main {
	public static void main(String[] args) {
		ScratchList list = new ScratchList();
		list.pushBack(5);
		list.pushBack(16);
		list.pushBack(29);
		System.out.println(list.get(0));
		System.out.println(list.get(1));
		System.out.println(list.get(2));
		System.out.println(list.get(3));
		System.out.println(list.get(300));
		list.remove(0);
		System.out.println(list.get(1));
		list.remove(1);
		System.out.println(list.get(1));
		list.set(1, 987);
		System.out.println(list.get(1));
	}
}
